package com.ruoyi.qsng.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 我的签到奖励对象 k_my_reward
 *
 * @author kanglou
 * @date 2023-06-07
 */
@ApiModel("我的签到奖励对象 k_my_reward")
@Data
public class KMyReward extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 奖励类型，对应数据字典k_my_reward_type */
    @Excel(name = "奖励类型，对应数据字典k_my_reward_type")
    @ApiModelProperty("奖励类型，对应数据字典k_my_reward_type")
    private String type;

    /** 奖励积分 */
    @Excel(name = "奖励积分")
    @ApiModelProperty("奖励积分")
    private Integer rewardIntegral;

    /** 主键 */
    private String id;

    @ApiModelProperty("用户id")
    private Long userId;

    /** 创建时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("签到日期yyyy-MM-dd HH:mm:ss")
    private Date signInDate;

    @ApiModelProperty("连续签到天数")
    private Long continuous;

    private String date;

    /** 微信id */
    @ApiModelProperty("微信id")
    private String openId;
    /** 用户账号 */
    @ApiModelProperty("用户账号")
    private String userName;
    /** 密码 */
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("手机号")
    private String phone;
    /** 用户头像 */
    @ApiModelProperty("用户头像")
    private String avatar;
    /** 学员姓名 */
    @ApiModelProperty("学员姓名")
    private String nickName;
    /** 学员年龄 */
    @ApiModelProperty("学员年龄")
    private Integer nickAge;
    /** 学员民族 */
    @ApiModelProperty("学员民族")
    private String nickNation;
    /** 学员身份证件号 */
    @ApiModelProperty("学员身份证件号")
    private String nickCard;
    /** 家长姓名 */
    @ApiModelProperty("家长姓名")
    private String homeName;
    /** 家长电话 */
    @ApiModelProperty("家长电话")
    private String homePhone;
    /** 所在学校 */
    @ApiModelProperty("所在学校")
    private String nickSchool;
    /** 所在年级 */
    @ApiModelProperty("所在年级")
    private String nickLevel;

    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setRewardIntegral(Integer rewardIntegral)
    {
        this.rewardIntegral = rewardIntegral;
    }

    public Integer getRewardIntegral()
    {
        return rewardIntegral;
    }
    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("type", getType())
            .append("rewardIntegral", getRewardIntegral())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("openId", getOpenId())
            .append("userName", getUserName())
            .append("password", getPassword())
            .append("phone", getPhone())
            .append("avatar", getAvatar())
            .append("nickName", getNickName())
            .append("nickAge", getNickAge())
            .append("nickNation", getNickNation())
            .append("nickCard", getNickCard())
            .append("homeName", getHomeName())
            .append("homePhone", getHomePhone())
            .append("nickSchool", getNickSchool())
            .append("nickLevel", getNickLevel())
            .toString();
    }
}
